<?php /* Smarty version Smarty-3.0.7, created on 2011-06-05 12:09:41
         compiled from "./templates/default\article.htm" */ ?>
<?php /*%%SmartyHeaderCode:164284deb01853af770-75890056%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a6d88b31a8e155f0288e2558c5c97e12898ee714' => 
    array (
      0 => './templates/default\\article.htm',
      1 => 1307246976,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '164284deb01853af770-75890056',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'F:\wamp\www\kuqi\smarty\plugins\modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo $_smarty_tpl->getVariable('article_title')->value;?>
-<?php echo $_smarty_tpl->getVariable('title')->value;?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<META content="<?php echo $_smarty_tpl->getVariable('article_keywords')->value;?>
" name="keywords">
<META content="<?php echo $_smarty_tpl->getVariable('article_description')->value;?>
" name="description">
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.arc_m span{
	padding-left:8px;
	padding-right:8px;
}
.zhenwen{
	line-height:25px;
}
</style>
</head>
<body>
<div class="main">

<?php $_template = new Smarty_Internal_Template("head.htm", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

  <div class="content">
    <div class="content_resize">
      <div class="mainbar" style="width:900px;">
	  <div class="lbg" style="margin-bottom:20px; font-size:12px;">当前位置：<a href="<?php echo $_smarty_tpl->getVariable('website_root')->value;?>
">首页</a> >> <a href="list.php?aid=<?php echo $_smarty_tpl->getVariable('article_typeid')->value;?>
&pages=1"><?php echo $_smarty_tpl->getVariable('typename')->value;?>
</a> >> 正文</div>
	  	<h1 style="text-align:center;"><?php echo $_smarty_tpl->getVariable('article_title')->value;?>
</h1>
		<div style="text-align:center;" class="arc_m"><span>作者：<?php echo (($tmp = @$_smarty_tpl->getVariable('article_write')->value)===null||$tmp==='' ? "匿名" : $tmp);?>
</span> | <span>来源：<?php echo (($tmp = @$_smarty_tpl->getVariable('article_source')->value)===null||$tmp==='' ? "网络" : $tmp);?>
</span> |<span> 时间：<?php echo smarty_modifier_date_format($_smarty_tpl->getVariable('article_pubdate')->value,"%Y-%m-%d");?>
</span> | <span>点击：<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('website_root')->value;?>
inc/count.php?aid=<?php echo $_smarty_tpl->getVariable('article_id')->value;?>
"></script></span></div>
        <div class="zhenwen" style="font-size:16px; margin-top:18px;">
			<?php echo $_smarty_tpl->getVariable('article_body')->value;?>

		</div>
      </div>
      <div class="clr"></div>
    </div>
  </div>

  <div class="fbg">
    <div class="fbg_resize">
      <div class="col c1">
       <h2><span>图片新闻</span></h2>
        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['list']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['name'] = 'list';
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max'] = (int)6;
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('pic_news')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = true;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['list']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['list']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['list']['total']);
?>
        <a href="viewarticle.php?aid=<?php echo $_smarty_tpl->getVariable('pic_news')->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['id'];?>
"><img src="<?php echo $_smarty_tpl->getVariable('pic_news')->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['litpic'];?>
" width="56" height="56" alt="<?php echo $_smarty_tpl->getVariable('pic_news')->value[$_smarty_tpl->getVariable('smarty')->value['section']['list']['index']]['title'];?>
" onerror=this.src="<?php echo $_smarty_tpl->getVariable('website_root')->value;?>
images/pix2.jpg" /></a>
        <?php endfor; endif; ?>
      </div>
      <div class="col c2">
        <h2><span>Lorem Ipsum</span></h2>
        <p>Lorem ipsum dolor<br />Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec libero. Suspendisse bibendum. Cras id urna. <a href="#">Morbi tincidunt, orci ac convallis aliquam</a>, lectus turpis varius lorem, eu posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum, dui pede condimentum odio, ac blandit ante orci ut diam.</p>
      </div>
      <div class="col c3">
        <h2><span>About</span></h2>
        <img src="images/white.jpg" width="56" height="56" alt="pix" />
        <p>convallis aliquam, lectus turpis varius lorem, eu posuere nunc justo tempus leo.  llorem, eu posuere nunc justo tempus leo. Donec mattis, purus nec placerat bibendum.</p>
        <p><a href="#" class="lbg">Learn more...</a></p>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  <?php $_template = new Smarty_Internal_Template("foot.htm", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?></div>
</body>
</html>
